﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserInfo"] == null || ((Entity.UserInfo)Session["UserInfo"]).UserType != "admin")
            {
                Response.Redirect("~/Search.aspx");
                PanelAdmin.Visible = false;
            }
            else
                PanelAdmin.Visible = true;
            DataTable dt = new DataTable();
            SQLHelper.getTagInfo(out dt);
            Session.Remove("SchoolId");

        }


        
    }
}
